package com.phrp.dao;

import com.phrp.entity.HouseRecord;
import com.phrp.entity.dto.LeaseApplyDataDTO;
import com.phrp.entity.dto.RentalApplyDataDTO;
import com.phrp.entity.vo.ApplyRecordSearchDataVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedList;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ssc
 * @since 2024-04-20
 */
@Mapper
public interface HouseRecordDao extends BaseMapper<HouseRecord> {

    LinkedList<RentalApplyDataDTO> selectBySearchData(ApplyRecordSearchDataVo searchData);

    Integer getRentalTotalNum(ApplyRecordSearchDataVo searchData);

    RentalApplyDataDTO selectByHrUuid(@Param("id") String id);

    LinkedList<LeaseApplyDataDTO> selectLeaseByData(ApplyRecordSearchDataVo searchData);

    Integer getLeaseTotalNum(ApplyRecordSearchDataVo searchData);

    LeaseApplyDataDTO selectLeaseById(@Param("id") String id);
}
